package spring.demo.SpringDate;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class SpringDate {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		   ApplicationContext context = new ClassPathXmlApplicationContext(
                   new String[] { "context.xml" });
   Employee emp = (Employee) context.getBean("dateBean");
   System.out.println(emp.getJoiningDate());
   Employee empDateEditor = (Employee) context.getBean("dateBean");
   System.out.println(empDateEditor.getJoiningDate());
   
	}

}
